<script setup lang="ts">
import CustomPayment from '@/components/custom-payment/custom-payment.vue'
import { ref } from 'vue';

const paymentRef = ref()
const clickFn = () => {
  paymentRef.value.open()
}
</script>

<template>
  <view class="test-page">
    <button class="uni-button" @click="clickFn">打开弹层</button>

    <custom-payment order-id="212121" :amount="89" ref="paymentRef"></custom-payment>
  </view>
</template>

<style lang="scss" scoped></style>
